package com.brave.mvvm.mvvmhelper.http;

import com.google.gson.annotations.SerializedName;

/**
 * <b><i>author</i></b> : brave tou
 * <br/>
 * <b><i>time</i></b>   : 2021/9/6 9:30
 * <br/>
 * <b><i>decs</i></b>   : 响应实体基类
 */
public class BaseResponse<T extends Object> {
    @SerializedName(value = "code")
    private int code;
    @SerializedName(value = "msg", alternate = {"message"})
    private String msg;
    @SerializedName(value = "data", alternate = {"result"})
    private T data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}